<template>
	<view class="about">
		<view class="head">
			<image :src="app_logo" class="logo"></image>
			<view class="title">{{app_name}} {{banben}}</view>
		</view>
		<view class="message">
			<view class="li clearfix">
				<view class="name fl">客服电话</view>
				<view class="desc fr">{{app_tell}}</view>
			</view>
			<view class="li clearfix">
				<view class="name fl">IPC备案号</view>
				<view class="desc fr">{{app_copy}}</view>
			</view>
			<view class="li clearfix">
				<view class="name fl">算法备案信息</view>
				<view class="desc fr">{{app_suanfa}}</view>
			</view>
		</view>
		<view class="footer">
			<text>《软件许可及服务协议》</text>
			<text>《隐私保护指南》</text>
			<text>《隐私保护指引摘要》</text>
		</view>
	</view>
</template>

<script>
	import {
		request
	} from '@/api/request';

	export default {
		data() {
			return {
				app_logo: '',
				banben: uni.getStorageSync('banben'),
				app_name: '',
				app_tell: '',
				app_copy: '',
				app_suanfa: '',
			}
		},
		onLoad() {
			request({
				url: '/api/user/about',
				method: 'GET',
				data: {},
				header: {
					'xx-token': uni.getStorageSync('token')
				}
			}).then((response) => {
				let option_value = JSON.parse(response.data.list.option_value);
				
				this.app_logo = 'https://groupbuy.huishuokj.com/upload/' + option_value.app_logo;
				this.app_name = option_value.app_name;
				this.app_tell = option_value.app_tell;
				this.app_copy = option_value.app_copy;
				this.app_suanfa = option_value.app_suanfa;
			}).catch((error) => {});
		},
		methods: {
			
		}
	}
</script>

<style scoped lang="scss">
	.about{
		width: 100%;
		margin: 0 auto;
		height: 100vh;
		overflow: hidden;
		
		.head{
			width: 100%;
			margin: 0 auto;
			margin-top: 100rpx;
			text-align: center;
			
			.logo{
				width: 200rpx;
				height: 200rpx;
				border-radius: 20rpx;
			}
			
			.title{
				margin-top: 30rpx;
				font-size: 36rpx;
				color: #FFFFFF;
			}
		}
		
		.message{
			width: 94%;
			margin: 80rpx auto;
			background: #242831;
			border-radius: 10rpx;
			
			.li{
				width: 94%;
				margin: 0 auto;
				height: 88rpx;
				line-height: 88rpx;
				border-bottom: 1rpx solid #31353E;
				
				.name{
					font-size: 30rpx;
					color: #FFFFFF;
				}
				
				.desc{
					font-size: 30rpx;
					color: #787B8F;
				}
			}
			
			.li:last-child{
				border-bottom: none;
			}
		}
		
		.footer{
			position: fixed;
			width: 100%;
			text-align: center;
			left: 0;
			bottom: 40rpx;
			
			text{
				color: #0370FB;
				font-size: 20rpx;
			}
		}
	}
</style>